package wangxiaotao.entity.alipay;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class AliPayRequest implements Serializable {
    /*商户订单号，必填*/
    private String out_trade_no;
    /*付款金额，必填*/
    @NotBlank(message = "订单金额不能为空")
    private String total_amount;
    /*订单名称，必填*/
    @NotBlank(message = "订单名称不能为空")
    private String subject;
    /*产品码*/
//    private final String product_code = "FAST_INSTANT_TRADE_PAY";
    /*商品描述，可空*/
    private String body;
}
